import request from '@/utils/request'

// 查询物资入库单列表(分页)
export function GetStockInList(data) {
	return request({
		url: 'pda/wm/stockin/list',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}

// 物资入库单新增
export function AddStockIn(data) {
	return request({
		url: 'pda/wm/stockin/add',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}

//修改物资入库单
export function UpdateStockIn(data) {
	return request({
		url: 'pda/wm/stockin/update',
		headers: {
			isToken: true
		},
		method: 'put',
		data: data
	})
}

// 获取物资入库单详细信息
export function GetInfoByRecptId(recptId) {
	return request({
		url: 'pda/wm/stockin/' + recptId,
		headers: {
			isToken: true
		},
		method: 'get'
	})
}

//执行入库操作
export function ExecuteStockIn(query) {
	return request({
		url: 'pda/wm/stockin/execute/' + query,
		headers: {
			isToken: true
		},
		method: 'get',
		params: query
	})
}